package com.bird.business.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author wangdan
 * @version 1.0
 * @date 2020/4/29 14:41
 */
@Data
public class CostControl implements Serializable {
    private Long id;
    //成本名称
    private String costName;
    //成本数量
    private double costNum;
    //成本价格
    private double costPrice;
    //总价
    private double sumPrice = costNum * costPrice;
    //购买时间
   // @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date purchaseTime;
    //购买人
    private String buyer;

    private Date createTime;

    private Date updateTime;


}
